package pms.Biz;

import pms.entity.Medicine;

import java.time.LocalDate;
import java.util.List;

public interface MedicineBiz {

    List<Medicine> qurryMedicineNumberByName(String name);

    List<Medicine> checkAllMedicineNumberUnderThd();

    List<Medicine> checkMedicineDateBeformNow();

    List<Medicine>checkNearTermMedicine();

    void WarnMedicine();

    boolean CleanUselessRecord();

    boolean addMedicine(Medicine medicine);

    boolean changeNumber(String name, LocalDate date, int number);

    boolean changePrice(String name,double price);
    Medicine qurryNumber(Integer id);
    List<Medicine>  qurryMedicine(String medicinename);//根据药品名称查询所有不同批次的此名称药品
    List<Medicine> qurryThd(Integer id);
    Medicine qurryMedicine(Integer id);//根据药品id查询此批次的对应药品信息
    boolean upMedicineNumber(int medicineid,int medicinenumber);
    boolean downMedicineNumber(int medicineid,int medicinenumber);
}
